package observer

import "fmt"

// Customer 具体观察者
type Customer struct {
	id string
}

func (c *Customer) Update(itemName string) {
	fmt.Printf("Sending email to customer %s for item %s\n", c.id, itemName)
}

func (c *Customer) GetID() string {
	return c.id
}

func (c *Customer) SetID(id string) {
	c.id = id
}
